icon view: Add an element name
authorMatthias Clasen <mclasen@redhat.com>
Fri, 30 Oct 2015 21:44:36 +0000 (17:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Oct 2015 21:44:36 +0000 (17:44 -0400)
Not surprising anybody, I decided to call it iconview.

gtk/gtkiconview.c

index 4dbf096353fadc6d7dc48ef4f8cf8626efbafe9c..143acb6de6d3f71f962d59a82aca0537e0aa3413 100644 (file)
  * opposed to a flat list where the mapping to icons is obvious),
  * #GtkIconView will only display the first level of the tree and
  * ignore the tree’s branches.
+ *
+ * # CSS nodes
+ *
+ * GtkIconView has a single CSS node with name iconview and style class .view.
  */
 
 #define SCROLL_EDGE_SIZE 15
@@ -930,6 +934,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
                                  GTK_MOVEMENT_VISUAL_POSITIONS, -1);
 
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_ICON_VIEW_ACCESSIBLE);
+  gtk_widget_class_set_css_name (widget_class, "iconview");
 }
 
 static void